.class public Lcom/estrongs/android/taskmanager/c/a;
.super Ljava/lang/Object;


# static fields
.field public static final a:Ljava/text/DecimalFormat;

.field public static final b:Ljava/text/DecimalFormat;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    new-instance v0, Ljava/text/DecimalFormat;

    const-string v1, "#.##"

    invoke-direct {v0, v1}, Ljava/text/DecimalFormat;-><init>(Ljava/lang/String;)V

    sput-object v0, Lcom/estrongs/android/taskmanager/c/a;->a:Ljava/text/DecimalFormat;

    new-instance v0, Ljava/text/DecimalFormat;

    const-string v1, "###,###,###"

    invoke-direct {v0, v1}, Ljava/text/DecimalFormat;-><init>(Ljava/lang/String;)V

    sput-object v0, Lcom/estrongs/android/taskmanager/c/a;->b:Ljava/text/DecimalFormat;

    return-void
.end method

.method public static a(J)J
    .locals 7

    const-wide/32 v0, 0x40000000

    const-wide/32 v2, 0x100000

    const-wide/16 v4, 0x400

    cmp-long v6, p0, v0

    if-ltz v6, :cond_0

    :goto_0
    return-wide v0

    :cond_0
    cmp-long v0, p0, v2

    if-ltz v0, :cond_1

    move-wide v0, v2

    goto :goto_0

    :cond_1
    cmp-long v0, p0, v4

    if-ltz v0, :cond_2

    move-wide v0, v4

    goto :goto_0

    :cond_2
    const-wide/16 v0, 0x1

    goto :goto_0
.end method

.method public static b(J)Ljava/lang/String;
    .locals 2

    const-wide/32 v0, 0x40000000

    cmp-long v0, p0, v0

    if-ltz v0, :cond_0

    const-string v0, "GB"

    :goto_0
    return-object v0

    :cond_0
    const-wide/32 v0, 0x100000

    cmp-long v0, p0, v0

    if-ltz v0, :cond_1

    const-string v0, "MB"

    goto :goto_0

    :cond_1
    const-wide/16 v0, 0x400

    cmp-long v0, p0, v0

    if-ltz v0, :cond_2

    const-string v0, "KB"

    goto :goto_0

    :cond_2
    const-string v0, "B"

    goto :goto_0
.end method

.method public static c(J)Ljava/lang/String;
    .locals 8

    long-to-double v0, p0

    invoke-static {p0, p1}, Lcom/estrongs/android/taskmanager/c/a;->a(J)J

    move-result-wide v2

    new-instance v4, Ljava/lang/StringBuilder;

    sget-object v5, Lcom/estrongs/android/taskmanager/c/a;->a:Ljava/text/DecimalFormat;

    long-to-double v6, v2

    div-double/2addr v0, v6

    invoke-virtual {v5, v0, v1}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {v4, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v0, " "

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-static {v2, v3}, Lcom/estrongs/android/taskmanager/c/a;->b(J)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
